package org.zoomdev.zoom.dao.handler;

import org.zoomdev.zoom.dao.SqlConfig;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ObjectResultSetHandler implements ResultSetHandler {
    @Override
    public Object fromResultSet(SqlConfig config, ResultSet rs) throws SQLException {
        if (rs.next()) {
            return rs.getObject(1);
        }
        return null;
    }
}
